﻿using Model.Request;
using Model.Response;

namespace InterfaceService
{
    public interface IUserService
    {
        /// <summary>
        /// 登陆时获取用户信息
        /// </summary>
        /// <param name="req"></param>
        /// <returns></returns>
        Task<UserRes> GetUser(LoginReq req);

        /// <summary>
        /// 修改个人信息
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="req"></param>
        /// <returns></returns>
        Task<bool> EditNickNameOrPassword(string userId, PersonEdit req);
    }
}